package com.vf.admin.client.dao;

import com.vf.admin.common.db.BaseDao;
import com.vf.admin.miaodong.entity.AppOpLog;
import com.vf.admin.miaodong.entity.AppOrder;
import org.springframework.stereotype.Repository;

/**
 * <p>Title : </p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : zxw
 * @Date 2023/8/12 18:30
 */
@Repository
public class AppOpLogDao extends BaseDao<AppOpLog> {

    /**
     * 添加/修改
     */
    public void save(AppOpLog haoYou) {
        if (haoYou.getId() != null && haoYou.getId() > 0) {
            this.update(haoYou);
        } else {
            haoYou.setId(this.add(haoYou));
        }
    }

}
